package vn.conghuy.talkwithme.data.android;

import java.io.Serializable;

public class SmsModel implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * @uml.property  name="protocol"
	 */
	int protocol;
	/**
	 * @uml.property  name="address"
	 */
	String address;
	/**
	 * @uml.property  name="date"
	 */
	long date;			//date in millisecond
	/**
	 * @uml.property  name="type"
	 */
	int type;
	/**
	 * @uml.property  name="subject"
	 */
	String subject;
	/**
	 * @uml.property  name="body"
	 */
	String body;
	/**
	 * @uml.property  name="serviceCenter"
	 */
	String serviceCenter;
	/**
	 * @uml.property  name="read"
	 */
	int read;
	/**
	 * @uml.property  name="status"
	 */
	int status;
	/**
	 * @uml.property  name="lock"
	 */
	int lock;
	
	public SmsModel(int protocol, String address, long date, int type,
			String subject, String body, String serviceCenter, int read,
			int status, int lock) {
		super();
		this.protocol = protocol;
		
		if(address != null)
			this.address = address;
		else this.address = "null";
		
		this.date = date;
		
		this.type = type;
		
		if(subject != null)
			this.subject = subject;
		else this.subject = "null";
		
		if(body != null)
			this.body = body;
		else this.body = "null";
		
		if(serviceCenter != null)
			this.serviceCenter = serviceCenter;
		else this.serviceCenter = "null";
		
		this.read = read;
		this.status = status;
		this.lock = lock;
	}

	/**
	 * @return
	 * @uml.property  name="protocol"
	 */
	public int getProtocol() {
		return protocol;
	}

	/**
	 * @return
	 * @uml.property  name="address"
	 */
	public String getAddress() {
		return address;
	}

	/**
	 * @return
	 * @uml.property  name="date"
	 */
	public long getDate() {
		return date;
	}

	/**
	 * @return
	 * @uml.property  name="type"
	 */
	public int getType() {
		return type;
	}

	/**
	 * @return
	 * @uml.property  name="subject"
	 */
	public String getSubject() {
		return subject;
	}

	/**
	 * @return
	 * @uml.property  name="body"
	 */
	public String getBody() {
		return body;
	}

	/**
	 * @return
	 * @uml.property  name="serviceCenter"
	 */
	public String getServiceCenter() {
		return serviceCenter;
	}

	/**
	 * @return
	 * @uml.property  name="read"
	 */
	public int getRead() {
		return read;
	}

	/**
	 * @return
	 * @uml.property  name="status"
	 */
	public int getStatus() {
		return status;
	}

	/**
	 * @return
	 * @uml.property  name="lock"
	 */
	public int getLock() {
		return lock;
	}
}
